@extends('home.pblic.publichead')
@section('content')
<script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="/public/baidu/lang/zh-cn/zh-cn.js"></script>  
<div id="wrapper">       
  <div id="content"> 
    <h1>修改日记</h1>
      <form role="form"  action="{{url('/home/day/geng')}}" method="post">          
        <div>
            <label style="width:100%;height:30px;line-height:18px;font-size:20px;">标题:</label>
            <br><br>
            <input class="form-control" type="text" name="title" value="{{ $cates->title }}" style="width:100%;height:30px;line-height:18px;font-size:18px;">
           <!--  <input type="hidden" name="id" value="{{ session('id') }}"> -->
            <input type="hidden" name="uid" value="6">
            <input type="hidden" name="id" value="{{ $cates->id }}">
        </div>
        <br>
         <div class="form-group">
            <label style="width:100%;height:30px;line-height:18px;font-size:20px;">内容:</label><br><br>
            <script id="editor" name="content" type="text/plain" style="width:100%;height:500px;">
                {!! $cates->content !!}
            </script>
        </div>
        {{csrf_field()}}
        <button  class="btn btn-primary" type="submit">修改日记</button>
 <div class="row note-tags">
            <label class="field" for="author_tags_clone">标签:</label>
    <script type="text/json" id="data-tags">
        {"active": [], "mine": [], "common": ["\u7535\u5f71", "\u97f3\u4e50", "\u8bfb\u4e66", "\u65f6\u5c1a", "\u827a\u672f", "\u4eba\u6587", "\u5efa\u7b51", "\u8bbe\u8ba1", "\u6444\u5f71", "\u81ea\u7136", "\u5386\u53f2", "\u79d1\u5b66", "\u5065\u5eb7", "\u4f53\u80b2", "\u6559\u80b2", "\u65c5\u884c", "\u5c45\u5bb6", "\u7f8e\u98df", "\u5ba0\u7269", "\u5a31\u4e50", "\u8da3\u5473", "\u8d22\u7ecf", "\u52a8\u6f2b", "\u6210\u957f", "\u60c5\u611f", "\u7f8e\u5973", "\u540c\u6027", "\u521b\u610f", "\u79d1\u6280", "\u661f\u5ea7", "\u65f6\u4e8b", "\u8a00\u8bba", "\u6c7d\u8f66", "\u81ea\u6211\u7ba1\u7406"]}
    </script>
    <div class="douban-tag-editor"></div>
        </div>

    <div class="row note-privacy">
        <label class="field">设置可见: </label>
        <label>
            <input tabindex="4" name="note_privacy" type="radio" value="P" checked /><span>所有人可见</span>
        </label>
        <label>
            <input tabindex="5" name="note_privacy" type="radio" value="S"  /><span>仅朋友可见</span>
        </label>
        <label>
            <input tabindex="6" name="note_privacy" type="radio" value="X"  /><span>仅自己可见</span>
        </label>
    </div>
    <div class="row note-reply">
        <label class="field" for="cannot_reply">权限设置: </label>
        <label>
            <input tabindex="7" id="cannot_reply" name="cannot_reply" type="checkbox"  /><span>不允许回应</span>
        </label>
    </div>
    <div class="row footer">
        <div class="error-msg board">
        </div>
   <!--  <div>
     <img id="captcha_image" src="https://www.douban.com/misc/captcha?id=SexDngq6XRA81baHpIdbDidN:en&amp;size=s" alt="captcha" class="captcha_image"/>
       <div class="captcha_block">
         <span id="captcha_block"  class="pl">请输入上图中的单词</span>
         <input type="text" id="captcha_field" name="captcha-solution" tabindex=3 placeholder="验证码" />
         <input type="hidden" name="captcha-id" value="SexDngq6XRA81baHpIdbDidN:en"/>
     </div>
   </div> -->

        <span class="bn-flat">
            <input tabindex="10" id="publish_note" value="修改" type="submit" class="bn-flat" />
        </span>
        <span class="bn-flat cancel-note">
            <input tabindex="11" id="cancel_note" value="取消" type="submit" class="bn-flat" name="cancel_note" />
        </span>
    </div>
    </form>
  </div>
</div>
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor',[]); 
</script>
@endsection

</body>

</html>

